package persistance;

public class Message
{
	public Message(String type, String name, String parent, String child, Integer y)
	{
		set_type(type);
		set_name(name);
		set_parent(parent);
		set_child(child);
		set_y(y);
		
		System.out.println("CREATED MESSAGE: " + get_name() + "  | TYPE: " + get_type() + " | PARENT: " + get_parent() + " | CHILD: " + get_child() + " | Y: " + get_y() + "");
	}
	
	private String _name;
	private String _parent;
	private String _child;
	private String _type;
	private int _y;
	
	
	public String get_name() {
		return _name;
	}
	public void set_name(String _name) {
		this._name = _name;
	}
	public String get_parent() {
		return _parent;
	}
	public void set_parent(String _parent) {
		this._parent = _parent;
	}
	public String get_child() {
		return _child;
	}
	public void set_child(String _child) {
		this._child = _child;
	}
	public String get_type() {
		return _type;
	}
	public void set_type(String _type) {
		this._type = _type;
	}
	public Integer get_y() {
		return _y;
	}
	public void set_y(Integer _y) {
		this._y = _y;
	}
}
